-- GENERATED SPELL FOR [Shadowpine Headhunter] --


function spell0_16344(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16344', 500, 1)
end

function Sorts_16344(pUnit, Event)
local choix_sorts_16344 = math.random(0, 0)
if choix_sorts_16344 == 0 then
pUnit:RegisterEvent('spell0_16344', 1, 1)
end
end

function mob16344_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16344', math.random(1500, 3000), 1)
end

function mob16344_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16344_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16344_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16344, 1, 'mob16344_Action')
RegisterUnitEvent(16344, 2, 'mob16344_Leave')
RegisterUnitEvent(16344, 3, 'mob16344_Kill')
RegisterUnitEvent(16344, 4, 'mob16344_Die')
